package pc29;

import java.util.Scanner;

public class J05Ex33Patterns {
	public static void main(String[] args) {
		// 1 : 빈칸갯수 2: '+'갯수

		int i, k, j;
		String result0, result1, result2 = "";
		result0 = "  ";
		result1 = "+";
		Scanner sc = new Scanner(System.in);

		label:
			for (; true;) {
			System.out.println("숫자 3개 입력해 : 빈칸갯수 / +갯수 /저장하려면 : 0 출력하려면 : 3");
			i = sc.nextInt();
			k = sc.nextInt();
			j = sc.nextInt();

			while (0 != i) {
				result2 += result0;
				i--;
			}
			while (0 != k) {
				result2 += result1;
				k--;
			}
			if (j == 3) {
				break;
			}
			result2 += "\n";
			continue label;
		}
		System.out.print(result2);

	}
}
